#ifndef GLOBALHOTKEYS_H
#define GLOBALHOTKEYS_H

#include <QObject>
#include <QHotkey>

class GlobalHotkeys : public QObject
{
    Q_OBJECT

public:
    explicit GlobalHotkeys(QObject *parent = nullptr);

signals:
    void minimizeRequested();
    void restoreRequested();

private slots:
    void minimizeWindow();
    void restoreWindow();

private:
    QHotkey *minimizeHotkey;
    QHotkey *restoreHotkey;
};

#endif // GLOBALHOTKEYS_H
